<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<?php
require_once "../../../../PCO.php";
require_once "../../../../global-themis/Classes/responsable.class";
include ("../../../../global-themis/functions/function_graph.php");
include ("../../../../global-themis/functions/functions.php");
$tab[0]="container";
$tab[1]="column";
$tab[2]="";
$tab[3]="";
$resultat="";
$matrice=array();
$titre=array('D_AV0', 'D_TRF', 'D_CPT ', 'D_AOV ', 'D_RIO ', 'D_RLO ', 'D_RPO ', 'D_RTO ', 'D_T_FR', 'D_T_ETR', 'C_TRF', 'C_CPT', 'C_AIO', 'C_APO', 'C_RVO', 'C_ROV', 'C_T_FR', 'C_T_ETR');

?>
<head>
 <link rel='stylesheet' type='text/css' href='../../../../global-themis/css/themisstyle.css'/>
<script type="text/javascript">
function OuvrirPopup(page) {
// le POPUP
      window.open(page, "comments", "toolbar=no, status=yes, scrollbars=yes, resizable=yes, width=1100, height=600");
}
</script>
<script src="../../../../global-themis/js/jquery.js"></script>
<script type="text/javascript" src="../../../../global-themis/js/highcharts.js"></script>
<script type="text/javascript" src="../../../../global-themis/js/modules/exporting.js"></script>
<script type="text/javascript" src="../../../../global-themis/js/themes/gray.js"></script>
<script type="text/javascript">
<?php
if(isset($_GET['code_res'])){
	$code_res=$_GET['code_res'];
	$matrice=buildMatriceBilanFlux($code_res, $tab[2], $titre);
	$resultat=buildChartTwoColumns($matrice, "" , $tab);
	echo $resultat;
}
?>
</script>
<script type="text/javascript">
$(document).ready(function(){
// le bouton du zoom
	$("#popup").click(function(){
		OuvrirPopup("./zoom/zoom_flux.php?code_res=<?php echo $code_res; ?>");
	});
});
</script>
</head>
<body>
<a id='popup'>Zoom </a>
<div id='container'></div>
</body>
</html>